<template>

</template>

<script lang="ts">
import {defineComponent, getCurrentInstance} from "vue";

export default defineComponent({
    data() {

        const vm = getCurrentInstance()

        if (!vm) {
            console.info("没有实例化的vm")
            return
        }


        const {$message, $confirm, $loading} = vm?.appContext.config.globalProperties


        console.info('初始化基类:', $message)

        return {
            $message,
            $confirm,
            $loading
        }
    }
})
</script>

<style scoped lang="scss">

</style>
